PUB main
  {SERVO.SetRamp(ServoCh1,2300,200) ' set the servo turn to most right side 
  waitcnt(clkfreq*2 + cnt)  
  SERVO.SetRamp(ServoCh1,700,200) ' set the servo turn to most left side
  waitcnt(clkfreq*2 + cnt)
  SERVO.SetRamp(ServoCh1,2300,200) ' set the servo turn to most right side }

{  servo.Start
  servo.Ramp
  servo.Set(ServoCh1,LRVRS)
  servo.Set(ServoCh2,LRVRS)
  servo.Set(ServoCh3,RFWD)
  servo.Set(ServoCh4,RFWD)
}

  {dira[0] := 1
  repeat
    outa[0] := 1
    pst.str(string("LED ON", 13))
    waitcnt(clkfreq + cnt)
    outa[0] := 0
    pst.str(string("LED OFF", 13))
    waitcnt(clkfreq + cnt)
   }

{  repeat
    Value := 1
    functions.LED(16, 1)        ' Syntax: LED( <pin to change>, <power level>)
    'functions.RecvState(16)     ' Syntax: RecvState( <number of pin> )
    pst.str(String("LOL!", 13))
    pst.str(String("----", 13))
    pst.dec(Value)
    'waitcnt(clkfreq + cnt)  
}